#逛逛app接口php环境构建脚本
#Version 1.0

#Base images
FROM php:7.3-fpm

#MAINTAINER
MAINTAINER 475281441@qq.com

#  设置时区
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

RUN apt-get update && apt-get install -y \
        libfreetype6-dev \
        libjpeg62-turbo-dev \
        libpng-dev \
    && docker-php-ext-configure gd --with-freetype --with-jpeg \
    && docker-php-ext-install -j$(nproc) gd

EXPOSE 9000
CMD ["php-fpm"]
